//
//  RoyHud.h
//  uricacids
//
//  Created by zglee on 10/15/19.
//  Copyright © 2019 zglee. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void(^complented)(BOOL result);

@interface RoyHud : NSObject



#pragma mark - UIAlertController wrapper
+ (void)showDialogwithvc:(UIViewController *)vc
                   title:(NSString *)title
                 content:(NSString *)content
                 leftstr:(NSString *)leftstr
                lhandler:(void (^)(UIAlertAction *action))lhandler
                rightstr:(NSString *)rightstr
                rhandler:(void (^)(UIAlertAction *action))rhandler;
 
+ (void)showDialogwithvc:(UIViewController *)vc
                   title:(NSString *)title
                 content:(NSString *)content
                   litem:(UIAlertAction *)litem
                   ritem:(UIAlertAction *)ritem;

/* @breif sheet implate by UIAlertController*/
+ (void)showsheetwithvc:(UIViewController *)vc
                  title:(NSString *)title
                content:(NSString *)content
                  items:(NSArray <UIAlertAction *> *)items;


#pragma mark - toast wrapper
+ (void)showToast:(NSString *)toast;
+ (void)showCenterToast:(NSString *)toast;
+ (void)showToast:(NSString *)toast complented:(complented)successed;

+ (void)showToast:(NSString *)toast OnView:(UIView *)view;

@end

@interface RoyHudcontent : UIView

- (void)show;

- (void)hide;

@end
